Found 6 posts.
Search results Show results as topic list.
Houdini Indie and Apprentice » attribute values and font
- Luis Riera
- 6 posts
- Offline
Hi, I have a question, if I create a float attribute, or I modify any parameter and set its value to 1.1 for example, and then I create a FONT and then add the value to the font display text, it shows something like 1.100000000000000001, is there a way to show exactly what I type on the value?
Houdini Indie and Apprentice » help with optimization... how to reduce code in VEX?
- Luis Riera
- 6 posts
- Offline
BabaJ
Well as an excercise for future reference you could do what I changed in your file.
Removed your wrangle that was running over the primitives and replaced it with a detail wrangle to calculate the Max value.
Then in your extrude nodes turned off the distance scale parameters of the local folders and put python in the distance paramter that references the detail node where the @Max attribute was created.
this was a very clever solution!
thanks for all the help.
Houdini Indie and Apprentice » help with optimization... how to reduce code in VEX?
- Luis Riera
- 6 posts
- Offline
I did it, because I dont know another way to do it.. I thought about creating a line, assigning the data to each point on the line and driving the extrude with the result through a copy stamp node, but I didnt knew how to execute that, or if that could work… so I ended up doing everything manually. Anyway.. my next test will be a Pie Chart, then a line graphic chart, and hopefully I'll learn more doing that.
Thanks. Originally I used a Detail wrangle node with a promote attribute to primitives, but it didnt work.
Thanks. Originally I used a Detail wrangle node with a promote attribute to primitives, but it didnt work.
Houdini Indie and Apprentice » help with optimization... how to reduce code in VEX?
- Luis Riera
- 6 posts
- Offline
Thanks, Im adding my hip. Please dont laugh, its the best I could do. Im sure there is more to optimize, but I dont know Houdini very well and I tend to hit a wall on almost all tutorials. I have been trying to learn it from a very long time.
Houdini Indie and Apprentice » help with optimization... how to reduce code in VEX?
- Luis Riera
- 6 posts
- Offline
Hi, im a new user of Houdini, I was wondering if there is such a thing like Visual Basic:
for i = 1 to 3
push(array, @data&i);
next i
So I can optimize my code if I decide to use a lot of data. Im sorry for the newbie question, but im just learning Houdini, and so far I got my scene to work (A bar graph), but I want to optimize it. This is my vex code:
float array;
push(array, @data1);
push(array, @data2);
push(array, @data3);
f@maxValue = max(array);
@data1 = @data1 / @maxValue;
@data2 = @data2 / @maxValue;
@data3 = @data3 / @maxValue;
thanks.
for i = 1 to 3
push(array, @data&i);
next i
So I can optimize my code if I decide to use a lot of data. Im sorry for the newbie question, but im just learning Houdini, and so far I got my scene to work (A bar graph), but I want to optimize it. This is my vex code:
float array;
push(array, @data1);
push(array, @data2);
push(array, @data3);
f@maxValue = max(array);
@data1 = @data1 / @maxValue;
@data2 = @data2 / @maxValue;
@data3 = @data3 / @maxValue;
thanks.
Edited by Luis Riera - July 30, 2018 16:03:02
Houdini Learning Materials » group node
- Luis Riera
- 6 posts
- Offline
ndicksonLandinKabamDo you have something specific in mind that doesn't work in VEX or that you'd like to know how to do in VEX? Anything that was possible in an HScript expression before should be doable in VEX. If you need a multi-line expression, the Attribute Wrangle node can create groups by writing to @group_thegroupname or by calling setpointgroup or related VEX functions.
What happened to Group by Expression functionality? The new Group Expression only uses VEXpression.
Hi, Im sorry for the simple question, I have been learnig Houdini for a couple weeks, I want to know how can I do a rand($PT) < 0.5 in VEX because the tutorials I have are outdated.
-
- Quick Links